module helper {


    export class DisplayManager {

        public static remove(obj: egret.DisplayObject): boolean {
            if (obj != null && obj.parent != null) {
                obj.parent.removeChild(obj);
                return true;
            }
            return false;
        }
    }

    export class RandomManager {

        public static getRand(): number {
            let rand = Math.random() * 99999999;
            rand = parseInt(rand.toString());
            return rand;
        }

        public static getRandRange(min: number, max: number): number {
            let rand = Math.random() * 99999999;
            max = max + 1;
            rand = parseInt(rand.toString());
            rand = rand % (max - min);
            return rand + min;
        }

    }

    export class SystemManager {
        public static info:SystemInfo;
    }
}